home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970326-19970626
/
000070_news@columbia.edu _Thu Apr 10 12:32:11 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA02192
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 10 Apr 1997 12:32:11 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA10947
for kermit.misc@watsun; Thu, 10 Apr 1997 12:32:10 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Hangup without killing device
Date: 10 Apr 1997 16:32:09 GMT
Organization: Columbia University
Lines: 50
Message-ID: <5ij4m9$gjk$1@apakabar.cc.columbia.edu>
References: <slrn5kpjq7.gmn.srichard@xlink67.xlink.net>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:6885
In article <slrn5kpjq7.gmn.srichard@xlink67.xlink.net>,
Sabine Richard-Schneider <srichard@xlink.net> wrote:
: I would like to know how to hang up kermit without killing the connections.
: That means to use kermit only as a dialer to build up a slip connection.
:
: Background: I log in at a computer who calls me back to build up a slip
: connection (my system is aix 3.2.5) After teh second connect I nedd kermit
: to terminate without clearing the device. Is that possible?
:
>From the Kermit FAQ:
http://www.columbia.edu/kermit/faq.html
ftp://kermit.columbia.edu/kermit/faq.txt
27 HOW CAN I EXIT FROM C-KERMIT WITHOUT HANGING UP?
Many people want to be able to make a dialout connection with UNIX C-Kermit,
but then use some other software on the connection that C-Kermit made. They
quickly find that when they exit from C-Kermit, that the connection is gone
before they can start the other application.
It is a fundamental property of UNIX that when a process exits, then every
file that was opened by that process is automatically closed by UNIX. Closing
a terminal device (such as a dialout tty device) hangs it up (by turning off
the DTR signal). There is nothing the process can do about it.
However, many workarounds are possible. Here are just a few:
- Tell C-Kermit to SET MODEM HANGUP-METHOD RS232, and then configure
your modem to ignore DTR (not recommended).
- Read about the REDIRECT command in the second edition of Using
C-Kermit.
- Find out the file descriptor of the open device (it is given by
C-Kermit's \v(ttyfd) variable) and then run ("!") your other program
from the C-Kermit prompt, feeding it the file descriptor, e.g.
through shell redirection or a command line option (the method
depends on the other program, the capabilities of the shell, etc).
- After Kermit makes the connection, type "show comm" to find out the
filename of the lock file. Then suspend Kermit, delete the lock
file, then start the other program and tell it to open the same tty
device.
Note that you can also tell C-Kermit to use a communications file descriptor
created by another process; see the command-line options list in "Using
C-Kermit", 2nd edition.
- Frank